package com.bwie.config;

import com.bwie.service.IAuthService;
import com.bwie.vo.ApplyToken;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @Author GaoYiJie
 * @Description
 * @Create 2025/4/17 10:20
 * @Version 1.0
 */
@Configuration
public class InitApplyToken {

    @Value("${token.key}")
    private String key;

    @Value("${token.secret}")
    private String secret;

//    @Resource
//    IAuthService authService;


    @Bean
    public ApplyToken getApplyToken(){
        return new ApplyToken(key,secret);
    }

//    @PostConstruct
//    public void getTokenFromNation(){
//        String token = authService.applyToken();
//    }
}
